package net.lzzy.chapter426;

public class Student {
    private int stuID;
    private String name;
    private double score;
    private int age;

    public Student() {
    }

    public Student(int stuID, String name, double score, int age) {
        this.stuID = stuID;
        this.name = name;
        this.score = score;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getStuID() {
        return stuID;
    }

    public void setStuID(int stuID) {
        this.stuID = stuID;
    }

    @Override
    public String toString() {
        return "编号:"+stuID + " 姓名:" + name+ " 分数:" + score + " 年龄:" + age;
    }
}
